<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="row">
	<div class="col-md-3"></div>
	<div class="col-md-6">
		<c:if test="${announcementStatus!=null}">
			<a href="${initParam.root}/announcement/mine?status=${announcementStatus}" class="btn btn-primary"><i class="fa fa-reply"></i>返回</a>
		</c:if>
	</div>
	<div class="col-md-3"></div>
</div>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
	<div class="box box-solid">
		<div class="box-header">
			<h1 class="box-title">${announcement.title} 
				<c:if test="${announcement.status==4}">
					<span class="text-muted"><i class="fa fa-trash-o"></i>已注销</span>
				</c:if>
				<c:if test="${announcement.status==3}">
					<span class="text-red"><i class="fa fa-ban"></i>驳回</span>
				</c:if>
				<c:if test="${announcement.status==2}">
					<span class="text-green"><i class="fa fa-gavel"></i>通过</span>
				</c:if>
				<c:if test="${announcement.status==1}">
					<span class="text-yellow"><i class="fa fa-pencil-square-o"></i>待审批</span>
				</c:if>
			</h1>
		</div>
		<!-- /.box-header -->
		<div class="box-body clearfix">
			<blockquote>
				<h4>${announcement.content}</h4>
				<small>申请人:${announcement.creator.name}</small>
				<small>审批人:${announcement.approver.name }</small>
				<small>所属部门:${departmentName}</small>
				<small>${announcementStatus!=3?'发布时间:':'驳回时间'} ${announcement.approveTime}</small>
			</blockquote>
		</div>
		<!-- /.box-body -->
	</div>
	<!-- /.box -->
</div>
<!-- ./col -->
<div class="col-md-3"></div>
</div>